﻿
using LPP.Entity;
using LPP.Repository.UserReviewRepository;

namespace LPP.Service.UserReviewService
{
    public class UserReviewService
    {
        private readonly UserReviewRepository _userReviewRepository;

        public UserReviewService(UserReviewRepository userReviewRepository)
        {
            _userReviewRepository = userReviewRepository;
        }

        public async Task AddReviewAsync(UserReview review)
        {
            await _userReviewRepository.AddUserReviewAsync(review);
        }

        public async Task<List<UserReview>> GetReviewsForUserAsync(int userId)
        {
            return await _userReviewRepository.GetUserReviewsAsync(userId);
        }
    }
}
